package com.cwh.taskcenter.task.dto.data;

import com.cwh.taskcenter.notice.dto.TaskNotificationDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * @author cwh
 */
@Data
public class TaskDTO {

    @Schema(description = "任务信息")
    @NotNull
    private TaskInfoDTO taskInfo;

    @Schema(description = "任务规则")
    @NotNull
    private List<TaskRuleDTO> taskRule;

    @Schema(description = "任务通知")
    @NotNull
    private TaskNotificationDTO taskNotification;

}
